package com.dgut.service.impl;

import com.dgut.dao.AdminDao;
import com.dgut.entity.Administrator;
import com.dgut.entity.User;
import com.dgut.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AdminServiceImpl implements AdminService {

    @Resource
    AdminDao adminDao;

    @Override
    public Administrator getAdministratorByAccount(String account) {
        return adminDao.getAdministratorByAccount(account);
    }

    @Override
    public List<User> getLackUserByDate(String date) {
        return adminDao.getLackUserByDate(date);
    }


    @Override
    public List<User> getLackUserBySchool(String school, String date) {
        return adminDao.getLackUserBySchoolAndDate(school, date);
    }
}
